package com.ms.p2p.dao;


import com.ms.p2p.entity.system.AdminUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;



public interface AdminUserDao extends CrudDao<AdminUser> {

    List<AdminUser> findPager(@Param("begin") int begin, @Param("size") int size);

    int findCount(@Param("ID") String empId, @Param("admin_name") String admin_name);

    List<AdminUser> find(AdminUser map);

    List<AdminUser> findPager(@Param("ID") String empId, @Param("admin_name") String admin_name, @Param("begin") int begin, @Param("size") Integer size);

    int insertEmp(@Param("depart") String depart, @Param("password") String s, @Param("name") String name, @Param("admin_name") String admin_name, @Param("time") String time);

    int updateEmp(@Param("depart") String depart, @Param("name") String name, @Param("admin_name") String admin_name, @Param("id") String user_id);


    AdminUser findByadmin_name(@Param("admin_name") String admin_name);
}
